/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.cakerun.model.resp;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 门店销售统计响应
 */
@Data
public class StoreSalesStatisticsResp {

    /**
     * 序号
     */
    private Integer serialNumber;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 蛋糕销售明细列表
     */
    private List<CakeSalesDetail> cakeSales;

    /**
     * 烘焙品数量
     */
    private Integer bakeryCount;

    /**
     * 烘焙品金额
     */
    private BigDecimal bakeryAmount;

    /**
     * 代金券数量
     */
    private Integer voucherCount;

    /**
     * 代金券金额
     */
    private BigDecimal voucherAmount;

    /**
     * 是否合计行
     */
    private Boolean isTotal;

    @Data
    public static class CakeSalesDetail {
        /**
         * 蛋糕尺寸
         */
        private String size;

        /**
         * 数量
         */
        private Integer count;

        /**
         * 金额
         */
        private BigDecimal amount;
    }
}